package com.hqyj.springbootdemo01.user.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hqyj.springbootdemo01.user.dto.UserInfo;
import com.hqyj.springbootdemo01.user.dto.UserPageInfo;
import com.hqyj.springbootdemo01.user.dto.UserRole;
import com.hqyj.springbootdemo01.user.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author sdx2009
 * @since 2022-08-26
 */
public interface UserService extends IService<User> {

    User getUserInfo(UserInfo userInfo);

    boolean addUser(UserInfo userInfo);

    boolean addUserBatch(UserInfo userInfo);

    boolean updateUser(UserInfo userInfo);

    boolean updateUserByWrapper(UserInfo userInfo);

    boolean updateUserBatch(UserInfo userInfo);

    Page<User> getUserPage(UserPageInfo userPageInfo);

    UserRole getUserRoleByUserId(Integer userId);

    boolean deleteUser(Integer id);

    User getUserInfoByName(String userName);

}
